package com.sven.idrivingfutureserver.exception;


import com.sven.idrivingfutureserver.common.ResultCode;

public class ExceptionCast {
    public static void cast(ResultCode resultCode) {
        throw new BaseException(resultCode);
    }

    public static void cast(ResultCode resultCode, Object errorData) {
        throw new RestException(resultCode, errorData);
    }
}
